import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

import vote from '../components/vote.vue'
import votedetail from '../components/votedetail.vue'
import topic from '../components/topic.vue'
import home from '../components/home.vue'
export default new VueRouter({
    routes: [
        {
            path: "/home",
            name: home,
            component: home
        },
        {
            path: "/topic",
            name: topic,
            component: topic
        },
        {
            path:"/votedetail",
            name:votedetail,
            component:votedetail
        },
        {
            path:"/vote",
            name:vote,
            component:vote
        },
        {
            path:"/",
            name:votedetail,
            component:votedetail,
            
        }
    ]
})